package kr.co.sdworld.api.apns.repository.token;

import kr.co.sdworld.api.apns.model.ApnsToken;
import kr.co.sdworld.api.apns.model.mapper.ApnsTokenMapper;

import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Repository;

@Repository
public class ApnsTokenDaoImpl extends SqlSessionDaoSupport implements ApnsTokenDao 
{
	@Override
	public int create(ApnsToken token) {
		ApnsTokenMapper mapper = getSqlSession().getMapper(ApnsTokenMapper.class);
		int result = mapper.insertSelective( token);
		return result;
	}
}
